package com.chuan.consumer;

import java.io.IOException;

import com.chuan.consumer.factory.ProxyFactory;
import com.chuan.core.api.PlayGameService;

/**
 * 服务消费者启动类
 * 
 * @author zhaowenchuan
 *
 */
public class $ {

	public static void main(String[] args) throws IOException {
		try {
			PlayGameService playService = ProxyFactory.getPlayService(); //获取Play服务
			playService.play("BasketBill");
			System.out.println("消费者订阅服务成功。日志请在服务提供端查看");
			System.in.read(); // 阻塞。
		} catch (IOException e) {
			e.printStackTrace();
			System.out.println("调用服务失败，请查看日志，并检查zookeeper是否挂机");
		}
	}
}
